package com.utils;

public class RegexpUtil {

	private final static String page = "([a-zA-Z_]\\w*)+([.][a-zA-Z_]\\w*){0,100}+";
	
	private final static String name = "[a-zA-Z0-9_-]{1,30}";
	
	public static boolean validPg(String text) {
		boolean res = text.matches(page);
		return res;
	}
	
	public static boolean validName(String text) {
		boolean res = text.matches(name);
		return res;
	}
}
